;/******************************************************************************
;**
;**  SRC-MODULE: BTLD.cfg
;**
;**  TARGET    : SWE-Generator
;**
;**  PURPOSE   : SWE-Generator configuration file for application BTLD
;**
;**  REMARKS   : automatically generated from ECUC
;**
;**  PLATFORM DEPENDENT [yes/no]: yes
;**
;**  TO BE CHANGED BY USER [yes/no]: yes
;**
;******************************************************************************/

; Open output file
OPEN BTLD

; 2 => 3 byte addresses, 3 => 4 byte addresses
SET_SREC_FORMAT 3 20

; Create additional block info in output file
CREATE_DATA_BLOCK_INFOS

; Set SGBM identifier
SET_IDENTIFIER btld_000064bd_001_000_000

; Set SWEDevelopmentInfo
SET_DEVELOPMENT_INFO_FIELD TEXT SWEGEN-BTLD

; Load blocks
READ_BLOCK_FROM_FILE %1 00008000 00009fff A0 SIGN
READ_BLOCK_FROM_FILE %1 0000a000 0000bfff A1 SIGN
READ_BLOCK_FROM_FILE %1 0000c000 0000dfff A2 SIGN
READ_BLOCK_FROM_FILE %1 0000e000 0000ffff A3 SIGN
READ_BLOCK_FROM_FILE %1 00010000 00017fff A4 SIGN
READ_BLOCK_FROM_FILE %1 00018000 0001ffff A5 SIGN
READ_BLOCK_FROM_FILE %1 00020000 00027fff A6 SIGN
READ_BLOCK_FROM_FILE %1 00028000 0002ffff A7 SIGN
READ_BLOCK_FROM_FILE %1 00030000 00037fff A8 SIGN
READ_BLOCK_FROM_FILE %1 00038000 0003ffff A9 SIGN
READ_BLOCK_FROM_FILE %1 00040000 00047fff Aa SIGN
READ_BLOCK_FROM_FILE %1 00048000 0004ffff Ab SIGN
READ_BLOCK_FROM_FILE %1 00050000 0005791b Ac SIGN
READ_BLOCK_FROM_FILE %1 0005791c 00057fff Ad NOSIGN


; Create output blocks
CREATE_OUTPUT_BLOCK 00008000 00009fff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 0000a000 0000bfff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 0000c000 0000dfff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 0000e000 0000ffff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00010000 00017fff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00018000 0001ffff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00020000 00027fff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00028000 0002ffff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00030000 00037fff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00038000 0003ffff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00040000 00047fff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00048000 0004ffff  COMPRESS_NRV
CREATE_OUTPUT_BLOCK 00050000 00057fff  COMPRESS_NRV

;                                      or NOCOMPRESS

; Signing data
SET_SIGNATURE_BYTE_ORDER MOTOROLA
SET_SIGNATURE_HASH_MODE  SHA256
SET_SIGNATURE_KEY_LENGTH 2048
SET_SIGNATURE_MODE	 RSA
SET_SIGNATURE_ADDRESS	 0005791c
; Set address of development info
SET_DIF_ADDRESS 00057908

; Signing key (only for signing with test keys)
SIGN C:\EC-Apps\ESG\SWE-Generator\Keys\official_Test_Key_Asym_2048.key

; Write description table to address of 'SweTable'
CREATE_DESCRIPTION_TABLE 00057900

; Calculate checksum
CALCULATE_CHECKSUM CRC16 BYTE
; Close output file
CLOSE

